package cn.humaohua.study.yanmo_design_pattern.ch07;

// 抽象工厂模式
public class Main {
    public static void main(String[] args) {
        // 装机工程师
        ComputerEngineer engineer = new ComputerEngineer();
        // 客户提出的装机方案
        AbstractFactory schema = new Schema1();
        // 根据方案组装电脑
        engineer.makeComputer(schema);

        schema = new Schema2();
        engineer.makeComputer(schema);
    }
}
